window.appRoot = window.location.origin ;	
(function(w){
	var store = window.localStorage||{};	
	window.setLocalCity = function(city){
		store['localCity'] = city ;
	} ;
	window.setLocalCityType = function(cityType){
		store['localCityType'] = cityType ;
	} ;
	window.setCity = function(city){
		store['city'] = city ; 
	} ;
	window.setSearch = function(search){
		store['search'] = search ; 
	} ;
	window.setSubscribe = function(subscribe){
		store['subscribe'] = subscribe ; 
	} ;
	window.setSubscribeSearch = function(subscribeSearch){
		store['subscribeSearch'] = subscribeSearch ; 
	} ;
	window.getLocalCity = function(){
		return store['localCity']||'';
	};
	window.getLocalCityType = function(){
		return store['localCityType']||'';
	};
	window.getCity = function(){
		return store['city']||'';
	} ;
	window.getSearch = function(){
		return store['search']||'';
	} ;
	window.getSubscribe = function(){
		return store['subscribe']||'';
	} ;
	window.getSubscribeSearch = function(){
		return store['subscribeSearch']||'';
	} ;
	
}(window));